package com.shjzit.loglib.db.entity;

import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;

@Entity(tableName = "tb_log")
public class LogEntity extends BaseEntity {

    @PrimaryKey(autoGenerate = true)
    @NonNull
    @ColumnInfo(name = "log_id")
    private Integer logId;

    @ColumnInfo(name = "log_content")
    private String content;

    @ColumnInfo(name = "create_time")
    private long createTime;


    @NonNull
    public Integer getLogId() {
        return logId;
    }

    public void setLogId(@NonNull Integer logId) {
        this.logId = logId;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public long getCreateTime() {
        return this.createTime;
    }
}
